home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15680 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 71 75 | 6f 69 6e 31 2e 71 75 6f |Path: qu|oin1.quo|
|00000010| 69 6e 69 6e 63 2e 63 6f | 6d 21 6a 70 6c 65 6a 61 |ininc.co|m!jpleja|
|00000020| 63 71 0a 46 72 6f 6d 3a | 20 4a 65 61 6e 20 50 69 |cq.From:| Jean Pi|
|00000030| 65 72 72 65 20 4c 65 4a | 61 63 71 20 3c 6a 70 6c |erre LeJ|acq <jpl|
|00000040| 65 6a 61 63 71 40 71 75 | 6f 69 6e 69 6e 63 2e 63 |ejacq@qu|oininc.c|
|00000050| 6f 6d 3e 0a 4e 65 77 73 | 67 72 6f 75 70 73 3a 20 |om>.News|groups: |
|00000060| 63 6f 6d 70 2e 6c 61 6e | 67 2e 63 2b 2b 0a 53 75 |comp.lan|g.c++.Su|
|00000070| 62 6a 65 63 74 3a 20 52 | 65 3a 20 48 6f 77 20 74 |bject: R|e: How t|
|00000080| 6f 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 61 72 72 |o initia|lize arr|
|00000090| 61 79 20 6f 66 20 6f 62 | 6a 65 63 74 73 20 75 73 |ay of ob|jects us|
|000000a0| 69 6e 67 20 6e 6f 6e 2d | 76 6f 69 64 20 63 6f 6e |ing non-|void con|
|000000b0| 73 74 72 75 63 74 6f 72 | 3f 0a 44 61 74 65 3a 20 |structor|?.Date: |
|000000c0| 54 75 65 2c 20 32 20 41 | 70 72 20 31 39 39 36 20 |Tue, 2 A|pr 1996 |
|000000d0| 30 37 3a 34 38 3a 32 31 | 20 2d 30 35 30 30 0a 4f |07:48:21| -0500.O|
|000000e0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 51 75 6f |rganizat|ion: Quo|
|000000f0| 69 6e 20 49 6e 63 20 2d | 20 43 61 6d 62 72 69 64 |in Inc -| Cambrid|
|00000100| 67 65 2c 20 4d 41 2c 20 | 55 53 41 0a 4d 65 73 73 |ge, MA, |USA.Mess|
|00000110| 61 67 65 2d 49 44 3a 20 | 3c 50 69 6e 65 2e 4c 4e |age-ID: |<Pine.LN|
|00000120| 58 2e 33 2e 39 31 2e 39 | 36 30 34 30 32 30 37 34 |X.3.91.9|60402074|
|00000130| 34 34 35 2e 34 35 34 42 | 2d 31 30 30 30 30 30 40 |445.454B|-100000@|
|00000140| 71 75 6f 69 6e 31 2e 71 | 75 6f 69 6e 69 6e 63 2e |quoin1.q|uoininc.|
|00000150| 63 6f 6d 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |com>.Ref|erences:|
|00000160| 20 3c 34 6a 62 75 6f 35 | 24 6d 63 62 40 6e 65 77 | <4jbuo5|$mcb@new|
|00000170| 73 68 6f 73 74 2e 6c 61 | 6e 6c 2e 67 6f 76 3e 20 |shost.la|nl.gov> |
|00000180| 3c 33 31 35 43 38 46 36 | 35 2e 37 38 44 35 40 61 |<315C8F6|5.78D5@a|
|00000190| 61 69 2e 61 72 63 6f 2e | 63 6f 6d 3e 20 3c 33 31 |ai.arco.|com> <31|
|000001a0| 35 46 35 45 31 33 2e 37 | 39 39 44 31 42 33 33 40 |5F5E13.7|99D1B33@|
|000001b0| 61 6c 63 79 6f 6e 65 2e | 63 6f 6d 3e 0a 4e 4e 54 |alcyone.|com>.NNT|
|000001c0| 50 2d 50 6f 73 74 69 6e | 67 2d 48 6f 73 74 3a 20 |P-Postin|g-Host: |
|000001d0| 71 75 6f 69 6e 31 2e 71 | 75 6f 69 6e 69 6e 63 2e |quoin1.q|uoininc.|
|000001e0| 63 6f 6d 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |com.Mime|-Version|
|000001f0| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000200| 70 65 3a 20 54 45 58 54 | 2f 50 4c 41 49 4e 3b 20 |pe: TEXT|/PLAIN; |
|00000210| 63 68 61 72 73 65 74 3d | 55 53 2d 41 53 43 49 49 |charset=|US-ASCII|
|00000220| 0a 49 6e 2d 52 65 70 6c | 79 2d 54 6f 3a 20 3c 33 |.In-Repl|y-To: <3|
|00000230| 31 35 46 35 45 31 33 2e | 37 39 39 44 31 42 33 33 |15F5E13.|799D1B33|
|00000240| 40 61 6c 63 79 6f 6e 65 | 2e 63 6f 6d 3e 20 0a 0a |@alcyone|.com> ..|
|00000250| 4f 6e 20 53 75 6e 2c 20 | 33 31 20 4d 61 72 20 31 |On Sun, |31 Mar 1|
|00000260| 39 39 36 2c 20 45 72 69 | 6b 20 4d 61 78 20 46 72 |996, Eri|k Max Fr|
|00000270| 61 6e 63 69 73 20 77 72 | 6f 74 65 3a 0a 0a 3e 20 |ancis wr|ote:..> |
|00000280| 42 72 69 61 6e 20 4c 65 | 61 63 68 20 77 72 6f 74 |Brian Le|ach wrot|
|00000290| 65 3a 0a 3e 20 0a 3e 20 | 3e 20 4c 69 61 6e 67 20 |e:.> .> |> Liang |
|000002a0| 4c 75 20 77 72 6f 74 65 | 3a 0a 3e 20 3e 20 3e 0a |Lu wrote|:.> > >.|
|000002b0| 3e 20 3e 20 3e 20 45 78 | 61 6d 70 6c 65 3a 0a 3e |> > > Ex|ample:.>|
|000002c0| 20 3e 20 3e 0a 3e 20 3e | 20 3e 20 63 6c 61 73 73 | > >.> >| > class|
|000002d0| 20 54 61 62 6c 65 20 7b | 0a 3e 20 3e 20 3e 20 20 | Table {|.> > > |
|000002e0| 20 20 20 20 20 20 20 54 | 61 62 6c 65 28 29 20 3b | T|able() ;|
|000002f0| 0a 3e 20 3e 20 3e 20 20 | 20 20 20 20 20 20 20 54 |.> > > | T|
|00000300| 61 62 6c 65 28 69 6e 74 | 20 6e 29 20 3b 0a 3e 20 |able(int| n) ;.> |
|00000310| 3e 20 3e 20 7d 20 3b 20 | 0a 3e 20 3e 20 3e 0a 3e |> > } ; |.> > >.>|
|00000320| 20 3e 20 3e 20 54 61 62 | 6c 65 20 6f 62 6a 65 63 | > > Tab|le objec|
|00000330| 74 5b 31 30 5d 20 3b 20 | 2f 2f 20 64 65 66 61 75 |t[10] ; |// defau|
|00000340| 6c 74 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 20 61 |lt const|ructor a|
|00000350| 72 65 20 75 73 65 64 20 | 68 65 72 65 0a 3e 20 3e |re used |here.> >|
|00000360| 0a 3e 20 3e 20 53 6f 72 | 72 79 20 4c 69 61 6e 67 |.> > Sor|ry Liang|
|00000370| 2c 20 69 74 20 69 73 20 | 6e 6f 74 20 70 6f 73 73 |, it is |not poss|
|00000380| 69 62 6c 65 2e 20 54 68 | 65 20 6c 61 6e 67 75 61 |ible. Th|e langua|
|00000390| 67 65 20 64 6f 65 73 20 | 6e 6f 74 20 61 6c 6c 6f |ge does |not allo|
|000003a0| 77 20 66 6f 72 0a 3e 20 | 3e 20 6e 6f 6e 2d 64 65 |w for.> |> non-de|
|000003b0| 66 61 75 6c 74 20 63 6f | 6e 73 74 72 75 63 74 6f |fault co|nstructo|
|000003c0| 72 73 20 66 6f 72 20 61 | 72 72 61 79 73 20 6f 66 |rs for a|rrays of|
|000003d0| 20 6f 62 6a 65 63 74 73 | 2e 0a 3e 20 0a 3e 20 4e | objects|..> .> N|
|000003e0| 6f 6e 73 65 6e 73 65 3b | 20 73 65 65 20 45 6c 6c |onsense;| see Ell|
|000003f0| 69 73 20 26 20 53 74 72 | 6f 75 73 74 72 75 70 2c |is & Str|oustrup,|
|00000400| 20 31 32 2e 36 2e 31 2e | 20 20 55 73 69 6e 67 20 | 12.6.1.| Using |
|00000410| 6e 6f 6e 2d 64 65 66 61 | 75 6c 74 20 63 6f 6e 73 |non-defa|ult cons|
|00000420| 74 72 75 63 74 6f 72 73 | 20 66 6f 72 0a 3e 20 69 |tructors| for.> i|
|00000430| 6e 69 74 69 61 6c 69 7a | 69 6e 67 20 61 6e 20 61 |nitializ|ing an a|
|00000440| 72 72 61 79 20 69 73 20 | 6d 75 63 68 20 74 68 65 |rray is |much the|
|00000450| 20 73 61 6d 65 20 61 73 | 20 6f 6e 65 20 77 6f 75 | same as| one wou|
|00000460| 6c 64 20 65 78 70 65 63 | 74 20 28 75 73 69 6e 67 |ld expec|t (using|
|00000470| 20 74 68 65 20 65 78 61 | 6d 70 6c 65 0a 3e 20 61 | the exa|mple.> a|
|00000480| 62 6f 76 65 29 3a 0a 3e | 20 0a 3e 20 20 20 20 20 |bove):.>| .> |
|00000490| 54 61 62 6c 65 20 6f 62 | 6a 65 63 74 5b 33 5d 20 |Table ob|ject[3] |
|000004a0| 3d 20 7b 20 6f 62 6a 65 | 63 74 28 31 29 2c 20 6f |= { obje|ct(1), o|
|000004b0| 62 6a 65 63 74 28 31 29 | 2c 20 6f 62 6a 65 63 74 |bject(1)|, object|
|000004c0| 28 32 29 20 7d 3b 0a 0a | 54 68 65 72 65 20 69 73 |(2) };..|There is|
|000004d0| 20 61 20 72 65 71 75 69 | 72 65 6d 65 6e 74 73 20 | a requi|rements |
|000004e0| 74 68 61 74 20 74 79 70 | 65 73 20 75 73 65 64 20 |that typ|es used |
|000004f0| 69 6e 20 64 79 6e 61 6d | 69 63 61 6c 6c 79 20 61 |in dynam|ically a|
|00000500| 6c 6c 6f 63 61 74 65 64 | 0a 61 72 72 61 79 73 20 |llocated|.arrays |
|00000510| 68 61 76 65 20 61 20 64 | 65 66 61 75 6c 74 20 63 |have a d|efault c|
|00000520| 6f 6e 73 74 72 75 63 74 | 6f 72 2e 0a 0a 20 20 20 |onstruct|or... |
|00000530| 20 54 61 62 6c 65 20 2a | 20 6f 62 6a 65 63 74 20 | Table *| object |
|00000540| 3d 20 6e 65 77 20 54 61 | 62 6c 65 5b 33 5d 3b 0a |= new Ta|ble[3];.|
|00000550| 0a 2d 2d 2d 20 4a 65 61 | 6e 20 50 69 65 72 72 65 |.--- Jea|n Pierre|
|00000560| 20 4c 65 4a 61 63 71 0a | 0a | LeJacq.|. |
+--------+-------------------------+-------------------------+--------+--------+